package track5;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class TestDemo {
    public static void main(String[] args) {
        List<Integer>list=new ArrayList<>();

        Collections.addAll(list,100,200,4,800,230,420);

        MyThread myThread1=new MyThread(list);
        MyThread myThread2=new MyThread(list);

        myThread1.setName("抽奖箱一");
        myThread2.setName("抽奖箱二");

        myThread1.start();
        myThread2.start();
    }
}
